package com.pengke.pangu.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResultCode {

    OK(200,"操作成功！"),
    BADREQUEST(400,"由于语法错误，服务器无法理解请求!"),
    UNAUTHORIZED(401,"需要登录身份验证!"),
    FORBIDDEN(403,"当前用户无操作权限!"),
    NOTFOUND(404,"服务器无法找到请求的资源!"),
    METHODNOTALLOWED(405,"请求方法不被允许!"),
    ERROR(500,"服务器程序异常，请联系管理员！"),
    LOCKED(501,"账户锁定，请稍后登录！"),
    DISABLED(502,"账户禁用，请联系管理员！"),
    BADCREDENTIALS(503,"请输入正确的用户名和密码！"),
    BADCAPTCHA(504,"请输入正确的验证码！"),
    CAPTCHAEXPIRATION(505,"验证码已过期，请重新获取！")
    ;

    private final Integer code;

    private final String msg;


}
